package grape.composite.rest.bus.mapper;

import grape.composite.rest.bus.form.BusListForm;
import grape.composite.service.bus.po.Bus;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.composite.rest.bus.form.BusCreateForm;
import grape.composite.rest.bus.form.BusUpdateForm;
import grape.composite.rest.bus.form.BusListPageForm;
import grape.composite.rest.bus.vo.BusVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 公交线路表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-09-10
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface BusWebMapper extends WebMapper<BusVo, Bus> {

    Bus formToPo(BusCreateForm f);
    Bus formToPo(BusUpdateForm f);
    Bus formToPo(BusListPageForm f);
    Bus formToPo(BusListForm f);
}
